package com.zxjbyte.yiyi.module.system.domain.param.dict;

import com.zxjbyte.yiyi.framework.common.annotation.InEnumValue;
import com.zxjbyte.yiyi.module.system.enums.DictTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author zhangxingjia
 * @Date 2024/1/24 17:44
 * @Version: 1.0
 */
@Data
@Schema(description = "字典新增请求结构体")
public class DictAddParam {

    @Schema(description = "字典类型：0-系统字典，1-业务字典")
    @NotNull(message = "type cannot be null")
    @InEnumValue(enumClass = DictTypeEnum.class)
    private Integer type;

    @Schema(description = "字典code")
    @NotBlank(message = "dictCode cannot be blank")
    private String dictCode;

    @Schema(description = "字典名称")
    @NotBlank(message = "dictName cannot be blank")
    private String dictName;

    @Schema(description = "备注")
    private String remark;
}
